//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class test6 extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/DealerLogin.php");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/DealerLogin.php");
		selenium.type("id=txtUsername", "99999");
		selenium.type("id=txtPassword", "Ldldvht9");
		selenium.click("name=submit");
		selenium.click("css=img[alt=\"Check out the all-new 2013 Fusion\"]");
		selenium.click("link=www.americanidol.com");
		verifyTrue(selenium.isElementPresent("link=Official Rules"));
		selenium.click("link=Privacy Statement");
		selenium.click("link=CA Privacy Statement");
	
		}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}